package com.open.capacity.reimburse.service;

import com.open.capacity.reimburse.dto.ProjectBudgetDto;
import com.open.capacity.reimburse.entity.PbdBudgetAdjust1;

import com.open.capacity.commons.PageResult;

import java.util.Map;
import java.util.List;

/**
 * 预算分配表
 *
 * @author
 * @email
 * @date 2021-06-29 10:26:52
 */
public interface PbdBudgetAdjust1Service {

    /**
     * 添加
     *
     * @param pbdBudgetAdjust1
     */
    int saveOrUpdate(PbdBudgetAdjust1[] pbdBudgetAdjust1);

    /**
     * 添加
     *
     * @param pbdBudgetAdjust1
     */
    int save(PbdBudgetAdjust1 pbdBudgetAdjust1);

    /**
     * 修改
     *
     * @param pbdBudgetAdjust1
     */
    int update(PbdBudgetAdjust1 pbdBudgetAdjust1);

    /**
     * 删除
     *
     * @param id
     */
    int delete(String id);

    /**
     * 查询项目分配比例
     *
     * @param year
     * @return
     */
    List<ProjectBudgetDto> getChart(Integer year);

    /**
     * 查询记录
     *
     * @param projectId
     * @return
     */
    List<PbdBudgetAdjust1> findByProjectId(Integer year, String projectId);

    /**
     * 分页
     *
     * @param params
     * @return
     */
    PageResult<PbdBudgetAdjust1> pageAll(Map<String, Object> params);

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<PbdBudgetAdjust1> findAll(Map<String, Object> params);
}

